package com.example.e_comm.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 李碧欣
 * @version 0.1
 * @data 2025/10/14 10:19
 * @description 角色权限Mapper
 */

@Data
@TableName("role_permission")
public class RolePermission{
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(value = "role_id")
    private Long roleId;
    @TableField(value = "perm_id")
    private Long permissionId;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime = LocalDateTime.now();
}
